package com.zefor.pojo;

import java.util.Date;

/*
* 厂房当前用电量
* */
public class ElectricityPojo {

    // 用电量
    private Double electricityconsumption;

    //用电时间
    private Date timestamp;

    public Double getElectricityconsumption() {
        return electricityconsumption;
    }

    public void setElectricityconsumption(Double electricityconsumption) {
        this.electricityconsumption = electricityconsumption;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Double timestamp) {
        this.timestamp = new Date((long) (timestamp*1000));
    }

    @Override
    public String toString() {
        return "ElectricityPojo{" +
                "electricityconsumption=" + electricityconsumption +
                ", timestamp=" + timestamp +
                '}';
    }
}
